﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace EmailMarketingCampaign
{
    public partial class EmailConfig : System.Web.UI.Page
    {

        EmailControl ec = new EmailControl();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                Panel1.Visible = false;
            }
        }

        protected void btnConfirm_Click(object sender, EventArgs e)
        {
            string smpt = txtSmtp.Text.ToString();
            string username = txtUser.Text.ToString();
            string password = txtPass.Text.ToString();
            ec.InserNewServer(smpt, username, password, Session["COMUniquelID"].ToString ());

        }

        protected void btnAdd_Click(object sender, EventArgs e)
        {
            Panel1.Visible = true;
        }
    }
}
